<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<table class="summary">
	<caption>Roundtrip Flight</caption>
	<thead>
		<tr>
			<th></th>
			<th>Flight Number</th>
			<th>Departing City</th>
			<th>Departing Date</th>
			<th>Departing Time</th>
			<th>Arriving City</th>
			<th>Arriving Date</th>
			<th>Arriving Time</th>
			<th>Flight Miles</th>
			<th>Price</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Departing Flight</td>
			<td>${flightDeparting.flightNumber}</td>
			<td>${flightDeparting.departingCity.name}</td>
			<td>${flightDeparting.formattedDepartureDate}</td>
			<td>${flightDeparting.departureTime}</td>
			<td>${flightDeparting.destinationCity.name}</td>
			<td>${flightDeparting.formattedArrivingDate}</td>
			<td>${flightDeparting.formattedArrivingTime}</td>
			<td>${flightDeparting.flightMiles}</td>
			<td>${flightDeparting.price}</td>
		</tr>
		<tr>
			<td>Returning Flight</td>
			<td>${flightReturning.flightNumber}</td>
			<td>${flightReturning.departingCity.name}</td>
			<td>${flightReturning.formattedDepartureDate}</td>
			<td>${flightReturning.departureTime}</td>
			<td>${flightReturning.destinationCity.name}</td>
			<td>${flightReturning.formattedArrivingDate}</td>
			<td>${flightReturning.formattedArrivingTime}</td>
			<td>${flightReturning.flightMiles}</td>
			<td>${flightReturning.price}</td>
		</tr>
	</tbody>
</table>
